linq while loop in c#

103

linq while loop in c# -

static IEnumerable<string> ReadAllLines()
{
    string line;
    while ((line = Console.ReadLine()) != string.Empty)
        yield return line;
}

Comments

Submit
0 Comments